-- GENERATED SPELL FOR [Grimtotem Earthbinder] --


function spell0_23595(pUnit, Event) --@Earthbind Totem,Self--
pUnit:FullCastSpellOnTarget(15786,pUnit)
pUnit:RegisterEvent('Sorts_23595', 45310, 1)
end

function Sorts_23595(pUnit, Event)
local choix_sorts_23595 = math.random(0, 0)
if choix_sorts_23595 == 0 then
pUnit:RegisterEvent('spell0_23595', 1, 1)
end
end

function mob23595_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23595', math.random(1500, 3000), 1)
end

function mob23595_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23595_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23595_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23595, 1, 'mob23595_Action')
RegisterUnitEvent(23595, 2, 'mob23595_Leave')
RegisterUnitEvent(23595, 3, 'mob23595_Kill')
RegisterUnitEvent(23595, 4, 'mob23595_Die')
